<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/14 0014
  Time: 23:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/header.jsp" %>
<html>
<head>
    <title>宣传更新</title>
    <link rel="stylesheet" href="${Layui}/css/layui.css" media="all">
    <script src="${jquery}/jquery-3.1.1.js" charset="utf-8"></script>
    <script src="${Layui}/layui.js" charset="utf-8"></script>
    <script src="${Js}/admin/propaganda.js" charset="utf-8"></script>
</head>

<body>
<form class="layui-form ">
    <div class="layui-form-item">
        <label class="layui-form-label">id</label>
        <div class="layui-input-block">
            <input type="text" disabled value="${croPropagandaVo.id}" name="id" lay-verify="title" autocomplete="off"
                   placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名字</label>
        <div class="layui-input-block">
            <input type="text" value="${croPropagandaVo.propagandaname}" name="propagandaname"
                   lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">宣传类型</label>
            <div class="layui-input-inline">
                <select name="croPropagandaVostype">
                    <option value="${croPropagandaVo.type}">${SysDict['propaganda_type'][croPropagandaVo.type]}</option>
                    <c:forEach items="${SysDict['propaganda_type']}" var="type">
                        <c:if test="${croPropagandaVo.type != type.key}">
                            <option value="${type.key}">${type.value}</option>
                        </c:if>
                    </c:forEach>
                </select>
            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">链接地址</label>
        <div class="layui-input-block">
            <input type="text" value="${croPropagandaVo.url}" name="url" lay-verify="required" id="url"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">图片</label>
        <div class="layui-input-block">
            <input type="text" value="${croPropagandaVo.photo}" name="photo" id="photo"
                   autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <a class="layui-btn" lay-submit lay-filter="updatepropaganda">立即提交</a>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
</html>
